// 弹出框配置选项
export interface PopoverOptions {
  content: string
  placement?:
    | 'top'
    | 'top-start'
    | 'top-end'
    | 'bottom'
    | 'bottom-start'
    | 'bottom-end'
    | 'left'
    | 'left-start'
    | 'left-end'
    | 'right'
    | 'right-start'
    | 'right-end'
  trigger?: 'click' | 'hover' | 'focus' | 'contextmenu'
  width?: string | number
  offset?: number
  popperClass?: string
  popperStyle?: Record<string, any>
  disabled?: boolean
  visibleArrow?: boolean
  arrowOffset?: number
  transition?: string
  enterable?: boolean
  showAfter?: number
  hideAfter?: number
  manual?: boolean
  appendTo?: HTMLElement | string
  teleported?: boolean
  rawContent?: boolean
}

// 弹出框事件
export interface PopoverEvents {
  'update:modelValue': (value: boolean) => void
  show: () => void
  hide: () => void
}
